home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Instance.sea / XML Instance / Required / plugins / HTMLWindow.jar / horst / BlockView.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-18  |  1.1 KB  |  27 lines

  1. package horst;
  2.  
  3. import java.awt.Rectangle;
  4.  
  5. public class BlockView extends View {
  6.    public BlockView(View parent, Element e, HTMLPane container) {
  7.       super(parent, e, container);
  8.    }
  9.  
  10.    protected boolean isNewlineView() {
  11.       return true;
  12.    }
  13.  
  14.    protected boolean isNextViewOnNewLine() {
  15.       return true;
  16.    }
  17.  
  18.    protected Rectangle layout(int x, int y, int width, LayoutInfo info) {
  19.       if ((super.m_elem.getType() == 37 || super.m_elem.getType() == 80) && super.m_container.getFramesEnabled()) {
  20.          super.m_bounds.setBounds(0, 0, 0, 0);
  21.          return super.m_bounds;
  22.       } else {
  23.          return super.layout(x, y, width, info);
  24.       }
  25.    }
  26. }
  27.